var App = require('./App.vue')
var schoolLeader = require('./pages/schoolLeader/schoolLeader.vue')
var overView = require('./pages/schoolLeader/overView.vue')
var processCenter = require('./pages/schoolLeader/processCenter.vue')
var applicationCenter = require('./pages/schoolLeader/applicationCenter.vue')
var allAppCenter = require('./pages/schoolLeader/allAppCenter.vue')
var deptmentAppCenter = require('./pages/schoolLeader/deptmentAppCenter.vue')
var industryAnalyse = require('./pages/schoolLeader/industryAnalyse.vue')
var departmenthome = require('./pages/departmentLeader/departmenthome.vue')
var applicationOverView = require('./pages/departmentLeader/applicationOverView.vue')
var applicationList = require('./pages/departmentLeader/applicationList.vue')
var processOverview = require('./pages/departmentLeader/processOverview.vue')
var processList = require('./pages/departmentLeader/processList.vue')
var signup = require('./pages/signup.vue')
var signin = require('./pages/signin.vue')
var infomationCenter = require('./pages/informationCenterLeadership/infomationCenter.vue')
var infomationCenterOverView = require('./pages/informationCenterLeadership/infomationCenterOverView.vue')
var infoApplication = require('./pages/informationCenterLeadership/infoApplication.vue')
var schoolProcess = require('./pages/informationCenterLeadership/schoolProcess.vue')
var adminCenter = require('./pages/environmentalAdministrator/adminCenter.vue')
var adminOverView = require('./pages/environmentalAdministrator/overView.vue')
var adminApplication = require('./pages/environmentalAdministrator/adminApplication.vue')
export default function(router) {
  router.map({
    '/app': {
      name: 'app',
      component: App,
      subRoutes: {
        '/': {
          name: 'schoolLeader',
          component: schoolLeader,
          subRoutes: {
            '/overView': {
              name: 'overView',
              component: overView
            },
            '/processCenter': {
              name: 'processCenter',
              component: processCenter
            },
            '/applicationCenter': {
              name: 'applicationCenter',
              component: applicationCenter,
              subRoutes: {
                '/': {
                  name: 'allAppCenter',
                  component: allAppCenter
                },
                'deptmentAppCenter/:kind': {
                  name: 'deptmentAppCenter',
                  component: deptmentAppCenter
                }
              }
            },
            '/industryAnalyse': {
              name: 'industryAnalyse',
              component: industryAnalyse
            }
          }
        },
        '/departmenthome/:deptId': {
          name: 'departmenthome',
          component: departmenthome,
          subRoutes: {
            '/': {
              name: 'applicationOverView',
              component: applicationOverView
            },
            '/applicationOverView': {
              name: 'applicationOverView',
              component: applicationOverView
            },
            '/applicationList': {
              name: 'applicationList',
              component: applicationList
            },
            '/processOverview': {
              name: 'processOverview',
              component: processOverview
            },
            '/processList': {
              name: 'processList',
              component: processList
            }
          }
        },
        '/infomationCenter': {
          name: 'infomationCenter',
          component: infomationCenter,
          subRoutes: {
            '/infomationCenterOverView': {
              name: 'infomationCenterOverView',
              component: infomationCenterOverView
            },
            '/infoApplication': {
              name: 'infoApplication',
              component: infoApplication
            },
            '/schoolProcess': {
              name: 'schoolProcess',
              component: schoolProcess
            }
          }
        },
        '/adminCenter': {
          name: 'adminCenter',
          component: adminCenter,
          subRoutes: {
            '/adminOverView': {
              name: adminOverView,
              component: adminOverView
            },
            'adminApplication': {
              name: adminApplication,
              component: adminApplication
            }
          }
        }
      }
    },
    '/signup': {
      name: 'signup',
      component: signup
    },
    '/': {
      name: 'signin',
      component: signin
    }

  })
}